package com.papers.juan.service;

import com.papers.juan.domain.TJuanReposRelated;
import com.papers.juan.domain.vo.TJuanReposRelatedVo;
import com.papers.juan.domain.bo.TJuanReposRelatedBo;
import com.papers.common.core.page.TableDataInfo;
import com.papers.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 题库题目关联Service接口
 *
 * @author papers
 * @date 2022-10-08
 */
public interface ITJuanReposRelatedService {

    /**
     * 查询题库题目关联
     */
    TJuanReposRelatedVo queryById(String reposId);

    /**
     * 查询题库题目关联列表
     */
    TableDataInfo<TJuanReposRelatedVo> queryPageList(TJuanReposRelatedBo bo, PageQuery pageQuery);

    /**
     * 查询题库题目关联列表
     */
    List<TJuanReposRelatedVo> queryList(TJuanReposRelatedBo bo);

    /**
     * 新增题库题目关联
     */
    Boolean insertByBo(TJuanReposRelatedBo bo);

    /**
     * 修改题库题目关联
     */
    Boolean updateByBo(TJuanReposRelatedBo bo);

    /**
     * 校验并批量删除题库题目关联信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);
}
